import request from '@/utils/request'

/**
 * 监测报警隐患数据项说明表分页查询
 * @param {查询条件} data
 */
export function listProRiskSensoralarmcoch(query) {
  return request({
    url: 'business/ProRiskSensoralarmcoch/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增监测报警隐患数据项说明表
 * @param data
 */
export function addProRiskSensoralarmcoch(data) {
  return request({
    url: 'business/ProRiskSensoralarmcoch',
    method: 'post',
    data: data,
  })
}
/**
 * 修改监测报警隐患数据项说明表
 * @param data
 */
export function updateProRiskSensoralarmcoch(data) {
  return request({
    url: 'business/ProRiskSensoralarmcoch',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取监测报警隐患数据项说明表详情
 * @param {Id}
 */
export function getProRiskSensoralarmcoch(id) {
  return request({
    url: 'business/ProRiskSensoralarmcoch/' + id,
    method: 'get'
  })
}

/**
 * 删除监测报警隐患数据项说明表
 * @param {主键} pid
 */
export function delProRiskSensoralarmcoch(pid) {
  return request({
    url: 'business/ProRiskSensoralarmcoch/delete/' + pid,
    method: 'delete'
  })
}
